<%@ Page Language="C#" MasterPageFile="~/Frame.Master" AutoEventWireup="true" Codebehind="SearchEmp.aspx.cs"
    Inherits="BaseSystem._System.SearchUsers" Title="Search Emp Page" %>

<%@ Register Src="UserControl/ucDivEmp.ascx" TagName="ucDivEmp" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">
     <script src="../_System/Script/Common.js" type="text/javascript"></script>
    <script type="text/javascript">
        function SetEmpValue(value)
        {
            window.opener.SetEmpValue(value);
            CloseWin();
        }
        function CloseWin()
        {
            window.opener=null;
            window.open("","_self");
            window.close();
        }
    </script>

    <table border="0" align="center" cellpadding="0" cellspacing="2" style="width: 700px;">
        <tr>
            <td nowrap="nowrap" valign="top">
            </td>
            <td nowrap="nowrap" style="height: 217px" valign="top">
                <table>
                    <tr>
                        <td valign="top">
                            <asp:Button ID="btnGetValue" runat="server" CssClass="button_bak" Text="<%$Resources:Base,GetValue %>"
                                OnClick="btnGetValue_Click" />
                            <input id="btnClose" onclick="CloseWin();" class="button_bak" type="button" value="<%=Resources.Base.Close %>" />
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <div id="UcDivEmp1Div" class="overStyle" style="border: royalblue 1px solid;background-color:#edf1f8;">
                                <uc1:ucDivEmp ID="UcDivEmp1" runat="server" ShowCheckBox="true" />
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <script type="text/javascript">
//        function adjustSize()
//    {
//        
//        document.getElementById("UcDivEmp1Div").style.height=document.documentElement.scrollHeight-40+"px";
//        document.getElementById("UcDivEmp1Div").style.width=document.documentElement.scrollWidth-20+"px"; 
//    }

//    window.onload=function()
//    {
//        adjustSize();
//    }
//    window.onresize=function()
//    {
//        adjustSize();
//    }

        window.onload=function()
        {
            setHeight("UcDivEmp1Div",-40);   
            setWidth("UcDivEmp1Div",-40); 
        }
        window.onresize=function()
        {
            setHeight("UcDivEmp1Div",-40);   
            setWidth("UcDivEmp1Div",-40); 
        }

    </script>
</asp:Content>
